package com.lsy.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    /**
     * IdType是一个枚举
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer age;

    private String email;

    /*@TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;*/

    /**
     * 增加逻辑删除注解
     */
    /*@TableLogic
    private Integer deleted;

    *//**
     * 功能描述: <br>
     * 〈〉
     * @Param: 乐观锁
     * @Return: 
     * @Author: Administrator
     * @Date: 2021-12-03 11:23
     *//*
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;*/
}
